package com.example.project;

import android.support.v7.app.ActionBarActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Setting extends ActionBarActivity {
	
	
	private Button button1=null;
	private Button button2=null;
	private Button button3=null;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.setting);
		button1=(Button)findViewById(R.id.button1);
		button2=(Button)findViewById(R.id.button2);
		button3=(Button)findViewById(R.id.button3);
		
		
		button1.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
				if(v==button1)
				{
					Intent intent=new Intent(Setting.this,SettingAbout.class);
					startActivity(intent);
										
				}
				
			}
			
		});
		button2.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
				if(v==button2)
				{
					Intent intent1=new Intent(Setting.this,SettingContent.class);
					startActivity(intent1);
				}
				
			}
			
		});
		button3.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				if(v==button3)
				{
					Intent intent2=new Intent(Setting.this,Code.class);
					intent2.putExtra("tag", "change");
					startActivity(intent2);
				}
				
			}
			
		
		});
		
		
		
		
		
	}


}
